//package com.fs.route;
//
//import com.alibaba.csp.sentinel.adapter.servlet.callback.WebCallbackManager;
//import com.fs.filter.SystemMonitorFilter;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.annotation.PostConstruct;
//
//
//@Configuration
//@Slf4j
//@SuppressWarnings("all")
//@RefreshScope
//public class SystemSentinelRouteConfig {
//
//
//
//    @Value("${sentinelserver}")
//    public String sentinelserver ;
//
//    @Bean
//    public RouteLocator sentinelServiceRouteLocator(RouteLocatorBuilder builder) {
//        return builder.routes()
//                .route(r -> r.path("/px-basesystem-sentinel/**")
//                        .uri(sentinelserver)
//                        .filters(new SystemMonitorFilter("/px-basesystem-sentinel/(?<segment>.*)"))
//                        .id("px-basesystem-sentinel"))
//
//                .build();
//    }
//
//}
